package nthu.web.controller;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import nthu.web.model.domain.User;


@SuppressWarnings("serial")
public class CurrentUserController extends ResourceController<User> {

	@Override
	public void doPost(HttpServletRequest request, HttpServletResponse response)
			                                    throws ServletException, IOException{

		include(request, response, "/CurrentUserDao");
		forward(request, response, "/CurrentUserView");
	}
	
	
	@Override
	public void doGet(HttpServletRequest request, HttpServletResponse response) 
	                                            throws ServletException, IOException{
		
		include(request, response, "/CurrentUserDao");
		forward(request, response, "/CurrentUserView");
    	
	}
	
	

}